package Month07.day09;

import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入:");
        String sc=scanner.nextLine();
        char[] chars=sc.toCharArray();
        int bigCount=0;
        int smallCount=0;
        int numberCount=0;
        for (int i = 0; i <sc.length() ; i++) {
            char c=chars[i];
            if (c>='A'&&c<='Z'){
                bigCount++;
            }else if (c>='a'&&c<='z'){
                smallCount++;
            }else if (c>='0'&&c<='9'){
                numberCount++;
            }
        }
        System.out.println("大写字母有"+bigCount+"个");
        System.out.println("小写字母有"+smallCount+"个");
        System.out.println("数字字母有"+numberCount+"个");
    }
}
